<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/2/25
 * Time: 11:19
 */
namespace app\models;

use Yii;
class ContentWork extends \yii\db\ActiveRecord{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%content_work}}';
    }
    public  function rules(){
        return [
            [['content_id'],'required'],
            [['image','discription'],'string']
        ];
    }
    public function attributeLabels()
    {
        return [
            'store_id' => 'Store ID',
            'goods_id'=>'goods_id',
            'content_id'=>'content_id',
            'model'=>'model',
        ];
    }
}